let cxs_mixin_timer = null;
export default {
    /**
     * 防抖函数: delay时间内只回调一次callback
     * @param callback
     * @param delay
     */
    debounce: function (callback, delay) {
        if (cxs_mixin_timer == 1) return;
        setTimeout(() => cxs_mixin_timer = null, delay)
        cxs_mixin_timer = 1;
        callback();
    }
}
